package com.gameapplet.PlayStatus.dao;

import com.gameapplet.PlayStatus.model.PlayStatus;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("iPlayStatusDao")
public interface IPlayStatusDao {
   public void insertPlayStatus(PlayStatus playStatus);
   public PlayStatus selectplaytatus(String playstatusid);
   public List<PlayStatus> selectranklist(String stageid);
   public PlayStatus selectUserMax(@Param("openid") String openid,@Param("stageid") String stageid);
   public void udpateismax(@Param("openid") String openid,@Param("stageid") String stageid,@Param("thisScore") Double thisScore);
   public PlayStatus selectLastStageRanklist(@Param("thisScore") Double thisScore,@Param("openid") String openid,@Param("stageid") String stageid);
   public PlayStatus selectLastTwoStageRanklist(@Param("thisScore") Double thisScore,@Param("openid") String openid,@Param("stageid") String stageid);
   public PlayStatus selectNextStageRanklist(@Param("thisScore") Double thisScore,@Param("openid") String openid,@Param("stageid") String stageid);
   public PlayStatus selectNextTwoStageRanklist(@Param("thisScore") Double thisScore,@Param("openid") String openid,@Param("stageid") String stageid);
   public int selectCurrentStage(String openid);

}
